package org.example.server.search.bo;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.example.api.goods.goods.enums.GoodsTagEnum;
import org.example.api.search.controller.response.GoodsDocSummeryResponse;

import java.util.List;

@Getter
@Setter
@ToString
@EqualsAndHashCode
public class GoodsDocSummaryBo {
    private String id;
    /**
     * 商品标题
     */
    private String title;
    /**
     * 商品子标题
     */
    private String subTitle;

    /**
     * 销售价格
     */
    private Long price;
    /**
     * 划线价格
     */
    private Long linePrice;
    /**
     * 库存
     */
    private Long stock;

    /**
     * 商品主图
     */
    private String image;
    /**
     * 标签
     */
    private List<GoodsDocSummeryResponse.Tag> tags;

    /**
     *
     */
    @Getter
    @Setter
    @ToString
    @EqualsAndHashCode
    public static class Tag {
        /**
         * 标签类型
         */
        private GoodsTagEnum type;
    }
}
